package com.demo.controller;

import com.demo.result.Result;
import com.demo.service.ActiveDataService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@Tag(name = "各种价格比较查询接口")
public class ActiveDataController {

    @Autowired
    private ActiveDataService activeDataService;
    @GetMapping("/queryGMVOrder")
    @ResponseBody
    @Tag(name = "房源价格比较查询接口")
    public Result queryGMVOrder() {
        return Result.success(activeDataService.queryGMVOrder());
    }

    @GetMapping("/queryGMVOrder02")
    @ResponseBody
    @Tag(name = "区域价格比较查询接口")
    public Result queryGMVOrder02() {
        return Result.success(activeDataService.queryGMVOrder02());
    }

    @GetMapping("/queryGMVOrder03")
    @ResponseBody
    @Tag(name = "月份价格比较查询接口")
    public Result queryGMVOrder03() {
        return Result.success(activeDataService.queryGMVOrder03());
    }

    @GetMapping("/queryQuYu")
    @ResponseBody
    @Tag(name = "区域排名接口")
    public Result queryQuYu() {
        return Result.success(activeDataService.queryQuYu());
    }


}
